package model

type User struct {
	BaseModel `xorm:"extends"`
	Name      string `xorm:"not null comment('姓名') VARCHAR(50)" json:"name" validate:"required"`
	Username  string `xorm:"not null comment('用户名') VARCHAR(50)" json:"username" validate:"required"`
	Password  string `xorm:"not null comment('密码') VARCHAR(100)" json:"password" validate:"required"`
	Avatar    string `xorm:"comment('头像') VARCHAR(255)" json:"avatar"`
	Birthday  string `xorm:"comment('出生日期') VARCHAR(50)" json:"birthday"`
}
